<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#box{
				background-color: #00FFFF;
				width:700px;
				height: 80px;
				overflow: hidden;
				margin: 0px auto;
			}
			img{
				width: 100px;
				height: 80px;
				
			}
			#inner{
				width: 1200px;
				height: 80px;
			}
			
		</style>
	</head>
	<body>
		
		<div id="box">
			<div id="inner">
				<img src="1.jpg" ><img src="2.jpg" ><img src="3.jpg" ><img src="4.jpg" ><img src="5.jpg" ><img src="6.jpg" ><img src="7.jpg" ><img src="8.jpg" ><img src="9.jpg" ><img src="10.jpg" ><img src="11.jpg" ><img src="12.jpg" >
			</div>
		</div>
		
		<script type="text/javascript">
			var t
			var n=1
			function move()
			{
				if(box.scrollLeft>=1200)
				{
					box.scrollLeft=0
				}
				else{
					box.scrollLeft++
				}
				t=setTimeout(move,n)
			}
			move()
			
			box.onmouseout=function(){
				clearTimeout(t)
			}
			box.onmouseout=move
			
		</script>
	</body>
</html>
